#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    std::cout << "Hello, World!" << std::endl;
    std::vector<int> vec = {0,1,2,3,4,5,6,7,8,9};
    auto first = vec.begin() + 2;
    auto last = vec.begin() + 5;
    auto iter = std::move(last, vec.end(), first);
    for (auto elem : vec) {
        std::cout << elem << " ";
    }   // 0,1,5,6,7,8,9,7,8,9
    std::cout << std::endl << "iter: " << *iter << std::endl;

    std::vector<int> vec2 = {3,5,9,7,8,2,1,6,4,0};
    std::sort(vec2.begin(), vec2.end(), std::greater<int>());
    for (const auto &elem : vec2) {
        std::cout << elem << " ";
    }
    std::cout << std::endl;
    return 0;
}
